package com.wtb.javatool.service;

import com.wtb.javatool.dto.AssignmentDto;
import com.wtb.javatool.entity.Assignment;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AssignmentService {
    void addAssignmentAndUndertaker(Assignment assignment, List<Long> userIdList);

    List<AssignmentDto> findAssignmentsByTaskId(Long taskId,Integer projectType);

    void deleteAssignmentByAssignmentId(List<Long> assignmentId);
    void updateAssignmentStatusByAssignmentId(List<Long>assignmentIds,Integer assignmentStatus);
    void updateAssignmentEndTimeAndTeamByAssignmentId(Assignment assignment);

    void updateAssignmentsEndTimeByAssignmentIds(List<Long> assignmentIdList, Date endTime);

    void upsertDeleteAssignmentUndertakers(Long Assignment, List<Long> userList);

    List<AssignmentDto> findTasksAssignments(Long projectId,Integer assignmentStatus,Integer taskType,Long courseId,Integer projectType);

    AssignmentDto findTaskAssignmentNumberByCourseId(Long courseId,Integer evaluationType);
}
